<template>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onTabItemTap() {
			this.goToMiniProgram()
		},
		methods: {
			goToMiniProgram() {
				// 通知宿主
				let data = {
					version: '1.0.0',
					url: 'http://www.huoyuanshequ.com/__UNI__2A91BBA.wgt',
					uniappID: '__UNI__2A91BBA'
				}
				uni.sendNativeEvent("DownloadAndOpen", data, () => {
					// 跳到首页
					uni.switchTab({
						url: '/pages/Home/Home'
					})
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		position: absolute;
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.container {
		text-align: center;
		width: 70%;

		.logo {
			width: 200rpx;
			height: 200rpx;
			margin-bottom: 40rpx;
		}
	}
</style>
